package com.qining618.cms.ucenter.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.qining618.cms.ucenter.enums.ThirdStatusEnum;
import com.qining618.cms.ucenter.enums.ThirdTypeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 第三方
 * </p>
 *
 * @author qining
 * @date 2019-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("o_third")
public class Third implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 类型
     */
    @TableField("`type`")
    private ThirdTypeEnum type;

    /**
     * 名称
     */
    @TableField("`name`")
    private String name;

    /**
     * 原始id
     */
    @TableField("`orgid`")
    private String orgid;

    /**
     * AppId
     */
    @TableField("`appid`")
    private String appid;

    /**
     * AppSecret
     */
    @TableField("`appsecret`")
    private String appsecret;

    /**
     * 状态 0关闭 1开启
     */
    @TableField("`status`")
    private ThirdStatusEnum status;

    /**
     * 创建时间
     */
    @TableField("`ctime`")
    private Date ctime;

    /**
     * 修改时间
     */
    @TableField("`mtime`")
    private Date mtime;


}
